//
//  ColorUtils.h
//  TotalDemo
//
//  Created by gujian on 16/2/14.
//  Copyright © 2016年 gujian. All rights reserved.
//

#ifndef ColorUtils_h
#define ColorUtils_h

#define _A_COLOR(color) ((((unsigned int)color) >> 24)&0xFF)
#define _R_COLOR(color) ((((unsigned int)color) >> 16)&0xFF)
#define _G_COLOR(color) ((((unsigned int)color) >> 8)&0xFF)
#define _B_COLOR(color) (((unsigned int)color)&0xFF)

#define UICOLOR_ARGB(color) [UIColor colorWithRed:_R_COLOR(color)/255.0 green:_G_COLOR(color)/255.0 blue:_B_COLOR(color)/255.0 alpha:_A_COLOR(color)/255.0]

#define COLOR_THEME             UICOLOR_ARGB(0xffc7edcc)

#define COLOR_NAVIGATIONBAR     COLOR_THEME

#define BACKGROUND_COLOR_GRAY   UICOLOR_ARGB(0xffededf3)

#define TEXT_COLOR_LIGHTGRAY    [UIColor lightGrayColor]

#endif /* ColorUtils_h */
